package com.example.demo.utils.http;


import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.*;

public interface IHttpApiService {

    @POST
    @Headers({
            "Content-Type: application/json;charset=UTF-8",
            "User-Agent: Retrofit-your-App"})
    Observable<ResponseBody> postdata(@Url String url, @Body Map<String, Object> info);


    //表单提交
    @POST
    @FormUrlEncoded
    @Headers({
            "Content-Type: application/x-www-form-urlencoded;charset=UTF-8",
            "User-Agent: Retrofit-your-App"})
    Observable<ResponseBody> postStrdata(@Url String url, @FieldMap Map<String, String> info);


    @GET
    Observable<ResponseBody> getDate(@Url String url, @QueryMap Map<String, String> info);


    //表单提交
    @POST
    @FormUrlEncoded
    Call<ResponseBody> postWYYPToken(@Url String url, @HeaderMap Map<String, String> heads, @FieldMap Map<String, Object> info);

}
